import pkRequest from '../index'

export function getHomePageMenu() {
  return pkRequest.get({
    url: `/homePage/getHomePageMenu`,
  })
}

export function getPersonalInfo(userid: string) {
  return pkRequest.get({
    url: `/homePage/getPersonalInfo/${userid}`,
  })
}

export function registerAccount(data: any) {
  return pkRequest.post({
    url: `/users`,
    data,
  })
}

export function login(data: any) {
  return pkRequest.post({
    url: `/login`,
    data,
  })
}

export function updatePassWord(data: any) {
  return pkRequest.post({
    url: `/users/updatePassWord`,
    data,
  })
}
